package com.windy.kafka.trace.config;
import com.windy.kafka.trace.annotation.EnableMQ;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.AdviceModeImportSelector;


/**
 * Created by liyufeng on 2022/3/22
 */
public class MessageSendConfigurationSelector extends AdviceModeImportSelector<EnableMQ> {
    @Override
    protected String[] selectImports(AdviceMode adviceMode) {
        switch (adviceMode) {
            case PROXY:
                return new String[]{ProxyMessageSenderConfiguration.class.getName()};
            default:
                return null;
        }
    }
}
